import request from '@/utils/request'

//从配置中获取业务的地址
import {baseUrlConfig} from '@/config/config'
const bastPath = baseUrlConfig.processBaseUrl
const userBasePath = baseUrlConfig.enterpriseUrl
// 根据科室获取员工信息
export const getPersonLst = (data: any) => {
    return request({
        url: bastPath + `/quality/employee/getEmployeeAndPosition`,
        method: 'post',
        data
    })
}
//从企业中泰
export const updateProperties = (data: any) => {
    return request({
        url: userBasePath + `/enterprise/staff/change/properties`,
        method: 'post',
        data
    })
}
export const synsUser = (data: any) => {
    return request({
        url: bastPath + `/quality/employee/findEmployeeById?id=`+data,
        method: 'get',
    })
}
export const updatePostion = (data: any) => {
    return request({
        url: bastPath + `/person/staff/change/properties`,
        method: 'post',
        data
    })
}
//导出
export const exportFile = (data: any) => {
    return request({
        url: bastPath + '/quality/employee/export?',
        responseType: 'blob',
        method: 'post',
        data
    })
}
